package org.dromara.system.domain.bo;

import org.dromara.system.domain.XcxFootprint;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 我的足迹业务对象 xcx_footprint
 *
 * @author Lion Li
 * @date 2024-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XcxFootprint.class, reverseConvertGenerate = false)
public class XcxFootprintBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 足迹ID
     */
    @NotNull(message = "足迹ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long footprintId;

    /**
     * 足迹类型（01：产品，02：客户）
     */
    @NotBlank(message = "足迹类型（01：产品，02：客户）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String footprintType;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 项目名称
     */
    private String itemName;
}
